<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      lsof-4.91
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;11.&nbsp;General Utilities
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="iso-codes.html" title=
          "ISO Codes-4.4">Prev</a>
          <p>
            ISO Codes-4.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="pinentry.html" title=
          "pinentry-1.1.0">Next</a>
          <p>
            pinentry-1.1.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genutils.html" title=
          "Chapter&nbsp;11.&nbsp;General Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="lsof" name="lsof"></a>lsof-4.91
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to lsof
        </h2>
        <p>
          The <span class="application">lsof</span> package is useful to LiSt
          Open Files for a given running application or process.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.91.tar.gz">
                https://www.mirrorservice.org/sites/lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_4.91.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 10e1353aa4bf2fd5bbed65db9ef6fd47
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.1 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 9.6 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          lsof Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../basicnet/libtirpc.html" title=
          "libtirpc-1.2.5">libtirpc-1.2.5</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/lsof">http://wiki.linuxfromscratch.org/blfs/wiki/lsof</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of lsof
        </h2>
        <p>
          The contents of the <span class="application">lsof</span> tarball
          include another tarball with the source code, which needs, in turn,
          to be unpacked. Install <span class="application">lsof</span> by
          running the following commands:
        </p>
        <pre class="userinput">
<kbd class="command">tar -xf lsof_4.91_src.tar  &amp;&amp;
cd lsof_4.91_src           &amp;&amp;
./Configure -n linux       &amp;&amp;
make CFGL="-L./lib -ltirpc"</kbd>
</pre>
        <p>
          This package does not come with a working test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">install -v -m0755 -o root -g root lsof /usr/bin &amp;&amp;
install -v lsof.8 /usr/share/man/man8</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>./Configure -n linux</strong></span>:
          Avoid AFS, customization, and inventory checks, and use the linux
          dialect.
        </p>
        <p>
          <span class="command"><strong>make CFGL="-L./lib
          -ltirpc"</strong></span>: Add the libtirpc libraries location to
          the <span class="command"><strong>make</strong></span> command.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Program:</strong>
              <span class="segbody">lsof</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="lsof-app" name="lsof-app"></a><span class=
                    "term"><span class=
                    "command"><strong>lsof</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    lists open files for running processes.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-17 12:03:00 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="iso-codes.html" title=
          "ISO Codes-4.4">Prev</a>
          <p>
            ISO Codes-4.4
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="pinentry.html" title=
          "pinentry-1.1.0">Next</a>
          <p>
            pinentry-1.1.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="genutils.html" title=
          "Chapter&nbsp;11.&nbsp;General Utilities">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
